<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="../style.css" />
	<title><?php echo($hp['title']); ?></title>
</head>

<body>
<div id="container">
    <div id="login">
        <form action="" method="post">
            <input type="text" value="USERNAME" class="username" onclick="this.value='';" onblur="this.value='USERNAME';" />
            <input type="password" value="PASSWORD" class="password" onclick="this.value='';" onblur="this.value='PASSWORD';" />
            <input type="submit" value="LOGIN" class="submit" />
        </form>
    </div>
    <div id="header"></div>
    <div id="menu_bg">
        <a href="index.php?p=home"><div id="home_icon"></div></a>
        <a href="index.php?p=register"><div id="register_icon"></div></a>
        <a href="index.php?p=forum"><div id="forum_icon"></div></a>
        <a href="index.php?p=media"><div id="media_icon"></div></a>
        <a href="index.php?p=contact"><div id="contact_icon"></div></a>
        <a href="index.php?p=vote"><div id="vote_icon"></div></a>
    </div>
        <div id="test"></div>
    <div id="left">
        <div class="bulletin"></div>
        <div class="news_top">
        
        <?php
		$select = mysql_query("SELECT * FROM news ORDER BY id ASC LIMIT 2");
		while($row = mysql_fetch_array($select)){
			$title = $row['title'];
			$date = $row['date'];
			$content = $row['content'];
			$author = $row['author'];
			$comments = $row['comments'];
			
		}
		
		
		?>
            <span class="title"><?php echo($title); ?></span>
            <span class="date"><?php echo($date); ?></span>
        </div>
        <div class="news_mdl">
            <div class="content"><?php echo($content); ?></div>
            <div class="news_line"></div>
            <div class="img"><img src="./images/temp.gif" /></div>
            <div class="author"><?php echo($author); ?></div>
            <a href="comment">
                <div class="comment"></div>
                <span class="comment_text">(<?php echo($comments); ?>)</span>
            </a>
        </div>
        <div class="news_bt"></div>
    </div>
    <div id="right">
        <div class="menu_top"></div>
        <div class="menu_mdl">
            <ul>
                <li><a href="index.php?p=main">Main Menu</a></li>
                <div class="menu_line"></div>
                <li><a href="http://www.google.com">Register Account</a></li>
                <div class="menu_line"></div>
                <li><a href="http://www.google.com">How To Connect</a></li>
                <div class="menu_line"></div>
                <li><a href="http://www.google.com">Donate</a></li>
                <div class="menu_line"></div>
                <li><a href="http://www.google.com">Vote Shop</a></li>
                <div class="menu_line"></div>
                <li><a href="http://www.google.com">Top Kills</a></li>
            </ul>
        </div>
        <div class="menu_bt"></div>        
    </div>
</div>
</body>
</html>